package com.woniu.service.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Message {

    public static final String MESSAGE_STATUS_UNSEND    = "未发送";
    public static final String MESSAGE_STATUS_SENDED    = "已发送";
    public static final String MESSAGE_STATUS_RECEIVED  = "已接收";

    private Integer id;
    private String exchange;
    private String routingKey;
    private String messageContent;
    private String status;  //消息的三种状态  1、未发送  2、已发送  3、已接受
    private Integer retryCount;

}
